import { connection } from "../app/database/mysql"

export const createUserLikePost=async (userId:number,postId:number)=>{
    const statement=`
        INSERT INTO
            user_like_post(userId,postId)
        VALUES(?,?)
    `
    try {
        const [data]=await connection.promise().query(statement,[userId,postId])
    } catch (error) {
        return error
    }
    
}